﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using jtext_EpicsServer;

namespace JEpicsServer_test01
{
    public partial class Form1 : Form
    {
        JEpicsServer testServer;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
           testServer = new JEpicsServer();
            

        }

        private void button1_Click(object sender, EventArgs e)
        {
            //((JEpicsRecord<double>)testServer.JERecordList[textBox1.Text]).Flush();
            testServer[textBox1.Text].Flush();
            label1.Text = testServer[textBox1.Text].ProcVAL .ToString();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            testServer.AddRecord<double>(textBox1.Text );
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
